package cn.iocoder.yudao.module.system.controller.admin.record.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 审核操作记录分页 Request VO")
@Data
public class ApprovalRecordPageReqVO extends PageParam {

    @Schema(description = "申请表单ID（关联申请主表）", example = "31480")
    private Integer applicationId;

    @Schema(description = "当前节点编码（关联审核节点配置表）")
    private String currentNodeCode;

    @Schema(description = "操作人（当前操作的执行人账号）")
    private String operator;

    @Schema(description = "操作类型：0 SUBMIT=提交、1 AUDIT=审核、2 SELECT_AUDITOR=选择审核人", example = "1")
    private String operationType;

    @Schema(description = "审核结果：0 PENDING=待审核、1 PASSED=审核通过、2 REJECTED=审核不通过（操作类型为AUDIT时必填）")
    private String auditResult;

    @Schema(description = "完成状态：0 待完成、1 COMPLETED=已完成", example = "1")
    private String completeStatus;

    @Schema(description = "备注（审核不通过原因、选择审核人说明等）", example = "你说的对")
    private String remark;

    @Schema(description = "完成时间（状态变为已完成时填写）")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] completeTime;

    @Schema(description = "创建时间（记录生成时间）")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "审核人（实际执行审核的人，操作类型为AUDIT时必填）")
    private String auditor;

}